import {utils} from './../utils/index'

let Goods = {}

utils.commonAddApi(Goods, 'addGoods', 'goods/create', 'post')
utils.commonAddApi(Goods, 'getGoodsList', 'goods/list', 'post')
utils.commonAddApi(Goods, 'updateGoods', 'goods/update', 'post')
utils.commonAddApi(Goods, 'getGoodsDetail', 'goods/detail', 'post')
utils.commonAddApi(Goods, 'updateStatus', 'goods/updateStatus', 'post')
utils.commonAddApi(Goods, 'searchGoods', 'goods/search', 'post')
utils.commonAddApi(Goods, 'copyGoods', 'goods/copy/{num}/{goodsId}', 'post')

export default Goods
